package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2017</p>
 *
 * @author gaol
 * @version 1.0
 * @date 2017/6/5
 */
@Mapper
public interface UserMapper {

    User select(@Param("id") long id);


    int insert(User user);

    int update(User user);

    int delete(Long id);
}
